<?php

namespace app\modules\admin\models;

use Yii;

/**
 * This is the model class for table "site_flink".
 *
 * @property int $id
 * @property string $fname 友链站点名称
 * @property string $furl 友链url
 * @property string $fdesc 友链描述
 * @property int $deleted 是否删除
 * @property string $created
 * @property string $modified
 */
class SiteFlink extends BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'site_flink';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['fname', 'furl'], 'required'],
            [['deleted'], 'integer'],
            [['created', 'modified'], 'safe'],
            [['fname', 'furl', 'fdesc'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'fname' => Yii::t('app', '友链站点名称'),
            'furl' => Yii::t('app', '友链url'),
            'fdesc' => Yii::t('app', '友链描述'),
            'deleted' => Yii::t('app', '是否删除'),
            'created' => Yii::t('app', 'Created'),
            'modified' => Yii::t('app', 'Modified'),
        ];
    }
}
